//
//  PKRegisterViewModel.swift
//  Panku
//
//  Created by mac on 2017/4/7.
//  Copyright © 2017年 Monster. All rights reserved.
//

import UIKit
import ReactiveCocoa
import ReactiveSwift
import Result

class PKRegisterViewModel: NSObject {
    
    //actions
    func actionForRegister() -> Action<(String,String,String),Any,NSError> {
        return Action<(String,String,String),Any,NSError>{ (input) -> SignalProducer<Any, NSError> in
            
            let accessId = input.0
            let accessType = input.1
            let passwd = input.2
            
            return PKLoginServices.register(accessId: accessId, accessType: accessType, passwd: passwd)
        }
        
        
    }
}
